package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * 权益使用记录（日志表）
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_cardserver_record")
@TableAlias("bcr")
@ApiModel(value = "BusCardserverRecord对象", description = "权益使用记录（日志表）")
public class BusCardserverRecord extends AbstractAllEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "cardserverRecordId", type = IdType.ASSIGN_ID)
    private Long cardserverRecordId;

    @ApiModelProperty(value = "卡权益id")
    private Long cardserverId;

    @ApiModelProperty(value = "标题 或 服务名称")
    private String title;

    @ApiModelProperty(value = "描述")
    private String body;

    @ApiModelProperty(value = "optType（1增加，2减少）")
    private String optType;

    @ApiModelProperty(value = "操作数值")
    private String numValue;

    @ApiModelProperty(value = "是否扣除（1已扣除，2未扣除）")
    private Integer isDeduct;

    @ApiModelProperty(value = "操作人Id")
    private Long optUserId;

    private String remark;

    @ApiModelProperty(value = "权益日志扩展表类型1appointment,2checkrecord,3第三方调用")
    private Integer targetType;

    private Long targetId;


}
